package cn.fzm.dao;

import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @author Dremeue
 * @create 2019-09-27 10:56
 **/
public class UserDao {
    private JdbcTemplate jdbcTemplate;

    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }

    public void add() {
        String sql = "insert into user values(?,?)";
        jdbcTemplate.update(sql, "李鑫","520");
    }
}
